package com.softwinner.awbt.common;

import com.softwinner.awbt.utils.LOG;

public class GocsdkCommon {
    public final void debug() {
        if (!Config.DEBUG) return;
        StackTraceElement traceElement = ((new Exception()).getStackTrace())[1];

        LOG.d(this.getClass().getSimpleName() + ":" + traceElement.getMethodName());
    }

    public final void debug(String str) {
        if (!Config.DEBUG) return;
        StackTraceElement traceElement = ((new Exception()).getStackTrace())[1];
        LOG.d(this.getClass().getSimpleName() + ":" + traceElement.getMethodName() + "::" + str);
    }

    public final void error(String str) {
        LOG.e(this.getClass().getName() + ":" + str);
    }
}
